#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{   
    printf("当前进程号:%d\n",getpid());
    printf("当前进程的父进程号:%d\n",getppid());
    return 0;
}